package com.supermarket.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 购物车实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Cart implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer commodityId;
    private Integer quantity;
    private Boolean selected;
    private Date createTime;
    private Date updateTime;
    
    // 关联对象，用于前端展示
    private Commodity commodity;
    private User user;
}
